<!doctype html>
<html lang="en" class="expanded">
<head>
	<meta charset="UTF-8">
	<title>终点文学网_我的书架</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=Edge">
	<meta name="viewport" content="width=1280">
	<link rel="shortcut icon" type="image/x-icon" href="/static/ydcommon/favicon.ico">
	<link rel="icon" sizes="any" mask href="//www.baidu.com/img/baidu.svg">
	
		<link rel="stylesheet" type="text/css" href="__PUBLIC__/Home/css/css_core_31a0946.css"/>
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/Home/css/pkg_ydcommon_base_78541af.css"/>
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/Home/css/drop_ax_722c12d.css"/>
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/Home/css/pkg_ydcommon_yui_0c10806.css"/>
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/Home/css/cashier_c907a59.css"/>
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/Home/css/top_reco_bb02634.css"/>
	
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/Home/css/8.css"/>
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/Home/css/9.css"/>
	<script src="__PUBLIC__/jq/jquery-3.0.0.min.js"></script>
	</head>
<body>
<div id="doc" class="page">

<block name="hd"><include file="Common:hd" /></block>


<div id="bd" class="bd">

<div class="bd-wrap">
<div class="body">

<div class="aside">

<div class="user-card">

<a href="<{:U('Mycenter/index')}>" target="_blank">
<img class="user-avatar" src="__UPLOAD__/<{$user.photo}>">
</a>
<div class="user-info">
<a href="http://www.baidu.com/p/star?from=wenku" class="user-uname" target="_blank"><{$username}></a>
</div>

</div>
<ul class="uc-nav">

<li><a class="current" href="<{:U('Home/Collection/index')}>">我的图书</a></li>
<li><a class="" href="<{:U('/Home/asda')}>">我的订单</a></li>
<li><a class="" href="<{:U('/Home/asda')}>">账户&#20805;&#20540;</a></li>
<li><a class="" href="<{:U('Home/asda')}>">文库VIP</a></li>
<li><a class="" href="<{:U('Home/asda')}>">我的兑换码</a></li>
<li><a class="" href="<{:U('Home/asda')}>">我的代金券</a></li>


</ul>
<div class="side-qr">
<img src="__PUBLIC__/Home/images/1.png" />
<span class="qr-text">
扫描手机同步阅读</span>
</div>

</div>

<div class="main">

<div class="right-main-container" data-csrf_sign="2426830912">
<div class="books-title-select">
<div class="books-part-btns">
<div class="one-part-btn <{$all}>" id="all">
<a href="./index?item=all">全部</a>
</div>
<div class="one-part-btn <{$payed}>" id="payed">
<a href="./index?item=payed">已购买</a>
</div>
<div class="one-part-btn <{$collect}>" id="collect">
<a href="./index?item=collect">已收藏</a>
</div>

</div>
</div>


<div class="books-container">

<!-- 遍历藏书 -->
<foreach name="list" item="vo">
<div class="one-book-item" id="<{$vo.id}>">
<div class="cover-img-container ">
<a title="<{$vo.name}>" target="_blank" href=""><img class="book-cover" width="142" height="190" src="__UPLOAD__/<{$vo.image}>"></a>
</div>
<span class="book-name">
<a title="<{$vo.name}>" target="_blank" href=""><{$vo.name}></a>
</span>
<span class="book-copr">
</span>
<span class="book-state"><{$status}></span>
<button onclick = delajax(<{$vo.id}>) style="margin-left:40px;height:20px;border:1px solid white">删除</button>
</div>
</foreach>
<!-- end -->
<script>

			function delajax(id){
				$.ajax({
					url: "<{:U('Collection/delajax',array('id'=>$vo['id']))}>",
					type: "post",
					data: {id:id},
					dataType: "json",
					success:function(result){
						 $("#"+id).remove();
					}
				})
			}
			
		</script>

</div>



<div id="page">

</div></div>

</div>


</div>
</div>

</div>
	
<block name="foot"><include file="Common:foot" /></block>

</body>
</html>